{{ if (or .Params.categories .Params.tags) }}<hr>{{ end }}
<div class="post-tags">
{{ if .Params.categories }}
<p>
  <svg xmlns="http://www.w3.org/2000/svg" class="octicon" width="20" height="24" viewBox="0 0 14 16"><path fill-rule="evenodd" d="M8 2H6V0h2v2zm4 5H2c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h10l2 2-2 2zM8 4H6v2h2V4zM6 16h2V8H6v8z"/></svg>
	<!-- Category -->
	{{ range $index, $cat := .Params.categories }}{{ if gt $index 0}}, {{ end }}<a class="p-category" href="/categories/{{ $cat | lower | urlize }}/">{{ $cat }}</a>{{ end }}
</p>
{{ end }}
{{ if .Params.tags }}
<p>
  <svg xmlns="http://www.w3.org/2000/svg" class="octicon" width="20" height="24" viewBox="0 0 15 16"><path fill-rule="evenodd" d="M7.73 1.73C7.26 1.26 6.62 1 5.96 1H3.5C2.13 1 1 2.13 1 3.5v2.47c0 .66.27 1.3.73 1.77l6.06 6.06c.39.39 1.02.39 1.41 0l4.59-4.59a.996.996 0 0 0 0-1.41L7.73 1.73zM2.38 7.09c-.31-.3-.47-.7-.47-1.13V3.5c0-.88.72-1.59 1.59-1.59h2.47c.42 0 .83.16 1.13.47l6.14 6.13-4.73 4.73-6.13-6.15zM3.01 3h2v2H3V3h.01z"/></svg>
	<!-- Tags -->
	{{ range $index, $tag := .Params.tags }}<a class="p-tag" href="/tags/{{ $tag | urlize }}/">{{ $tag }}</a>{{ end }}

</p>
</div>
{{ end }}